x86emul: reduce FPU handling code size
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:03:48 +0000 (12:03 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Dec 2016 11:03:48 +0000 (12:03 +0100)
commit50e793214f1021589942f8744a60eed72af91a68
treea084519c8e994d998346b443d190ed1433320481
parent3045e864f03e34f6f1a2e213f4439cd7276c43c8
x86emul: reduce FPU handling code size

Pulling out the {get,put}_fpu() invocations from individual emulation
paths leads to a couple of kb code size reduction in my builds. Note
that this is fine exception-wise:
- #UD and #NM have implementation defined order relative to one
  another,
- data read #GP/#SS/#PF now properly are delivered after #NM/#UD.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/x86_emulate/x86_emulate.c